#整数和浮点数计算
def calculate_bmr(gender, age, weight, height):
    if gender == '男':
        bmr = 66 + (6.23 * weight) + (12.7 * height) - (6.8 * age)
    elif gender == '女':
        bmr = 655 + (4.35 * weight) + (4.7 * height) - (4.7 * age)
    else:
        return None

    return int(bmr), float(bmr)


while True:
    gender = input("请输入性别（男/女）：")
    age = int(input("请输入年龄："))
    weight = float(input("请输入体重（kg）："))
    height = float(input("请输入身高（cm）："))

    bmr_result = calculate_bmr(gender, age, weight, height)
    if bmr_result:
        bmr_int, bmr_float = bmr_result
        print("整数BMR:", bmr_int)
        print("浮点数BMR:", bmr_float)
        break
    else:
        print("性别输入有误，请重新输入")